<?php include_once('header.php'); ?>
	<?PHP
		function check_lang() { 
		if(isSet($_GET['lang']))
		{
			$lang = $_GET['lang'];
			
			// register the session and set the cookie
			$_SESSION['lang'] = $lang;
			
		}
		else if(isSet($_SESSION['lang']))
		{
			$lang = $_SESSION['lang'];
		}
		else if(isSet($_COOKIE['lang']))
		{
			$lang = $_COOKIE['lang'];
		}
		else
		{
			$lang = 'en';
		}
		
		//directory name 
		  $dir = 'languages'; 
		
		//no we return the langauge wanted ! 
		//Returned String Format: dirname/filename.ext 
		  return "$dir/$lang.lng"; 
	} 
	?>
	<?PHP
	//this function will check user language and return the file name to be included .. 
	$lang = check_lang();
	$_SESSION['abc'] = 'lienhe';
	include($lang); 
	?>
	<div id="wrapper1">
		<!-- Header : ---------------------  Start -------------------------
			Describle : banner + logo + search + link (english, vietnam, rss)-->	
		<div id="header" class="container" align="center">
			<!-- text link -->
			<div style="float:left; margin:40px 30px auto; font-size:18px; color:#666666">
				<b> Site map | 
				<a onclick="developfunction('')" id="english" 
					onmouseover="change_color_link('english', '#000000')" 
					onmouseout="change_color_link('english', '#666666')"
					href="lienhe.php?lang=en" > 
						English </a> | 
				<a onclick="refreshView()" id="vietnam" 
					onmouseover="change_color_link('vietnam', '#000000')" 
					onmouseout="change_color_link('vietnam', '#666666')"
					href="lienhe.php?lang=vn"> 
						Vietnam </a> | 
				<a id="rss" onclick="developfunction('')"
					onmouseover="change_color_link('rss', '#000000')" 
					onmouseout="change_color_link('rss', '#666666')"
					> 
						RSS </a></b>			</div>

<?php include_once('menu.php'); ?>

                    <p>
						CÔNG TY TNHH HOÀNG LONG
					</p>
					<p>
						Địa chỉ : xã Thạch Thất - huyện Thạch Thất - Hà Nội
					</p>
					<p>
						SĐT: (04).366.7253
					</p>
<?php include_once('footer.php'); ?>